package game.com.game.action;

import game.com.game.Persion;

/**
 * Created by maizhipeng on 2017/5/3.
 */

public class WalkAction extends AbstractAction {

    int startX, startY, endX, endY;

    public WalkAction(int startX, int startY, int endX, int endY) {
        this.startX = startX;
        this.startY = startY;
        this.endX = endX;
        this.endY = endY;
    }

    @Override
    public void start(Persion persion) {
        persion.setStatus(Persion.WALKING_STATUS);
        gotoWalk(persion);
    }


    private void gotoWalk(Persion persion){
        expensePower(persion);
        persion.setStatus(Persion.NORMAL_STATUS);
        if(mIActionListener!=null) mIActionListener.onFinish();
    }

    private void expensePower(Persion persion) {

    }
}
